/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mancala;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import static org.junit.Assert.*;

/**
 *
 * @author jsiebena
 */
public class HolePlacementAlgorithmPCSTest3 {
    
    public HolePlacementAlgorithmPCSTest3() {
    }
    
    @BeforeClass
    public static void setUpClass() {
    }
    
    @AfterClass
    public static void tearDownClass() {
    }
    
    @Before
    public void setUp() {
    }
    
    @After
    public void tearDown() {
    }

    /**
     * Test of ResetBoard method, of class HolePlacementAlgorithm.
     */



    /**
     * Test of PlaceCaptureStones method, of class HolePlacementAlgorithm.
     */
    @Test
    public void testPlaceCaptureStones() {
        System.out.println("PlaceCaptureStones");
        int[] StonesInHoles = new int [16];
        
        for(int i = 1; i < StonesInHoles.length;i ++){
            StonesInHoles[i] = 7;
        }
        int pitvalue = 0;
        int lasthole = 2;
        int[] expResult = new int [16];
        
        expResult[0] = 14;
        expResult[1] = 7;
        expResult[2] = 0;
        expResult[3] = 7;
        expResult[4] = 7;
        expResult[5] = 7;
        expResult[6] = 7;
        expResult[7] = 7;
        expResult[8] = 7;
        expResult[9] = 7;
        expResult[10] = 7;
        expResult[11] = 7;
        expResult[12] = 7;
        expResult[13] = 7;
        expResult[14] = 0;
        expResult[15] = 7;
        
       
               
        int[] result = HolePlacementAlgorithm.PlaceCaptureStones(StonesInHoles, pitvalue, lasthole);
        assertArrayEquals(expResult, result);
        // TODO review the generated test code and remove the default call to fail.
        
        
       
    }

    
   
}
